import request from '@/utils/request'

// 查询场地管理列表
export function listAgentaddress(query) {
  return request({
    url: '/module/agentaddress/list',
    method: 'get',
    params: query
  })
}

// 查询场地管理详细
export function getAgentaddress(id) {
  return request({
    url: '/module/agentaddress/' + id,
    method: 'get'
  })
}

// 新增场地管理
export function addAgentaddress(data) {
  return request({
    url: '/module/agentaddress',
    method: 'post',
    data: data
  })
}

// 修改场地管理
export function updateAgentaddress(data) {
  return request({
    url: '/module/agentaddress',
    method: 'put',
    data: data
  })
}

// 删除场地管理
export function delAgentaddress(id) {
  return request({
    url: '/module/agentaddress/' + id,
    method: 'delete'
  })
}

//场地设备地图 获取经纬度/module/agentdevice/list2
export function agentDevice(){
  return request({
    url: '/module/agentdevice/list2' ,
    method: 'GET'
  })
}

//
//省市区
export function region(){
  return request({
    url: '/module/region/regionList' ,
    method: 'POST'
  })
}
